package pers.goetboy.exam.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pers.goetboy.common.AbstractController;
import pers.goetboy.exam.model.entity.Answer;
import pers.goetboy.exam.model.entity.Exam;
import pers.goetboy.exam.services.AnswerService;


/**
 * @author goetb
 */
@RestController
@RequestMapping("/answer")
public class AnswerController extends AbstractController<Answer, AnswerService> {

    /**
     * 获取答案列表
     */
    @GetMapping("/list")
    public IPage<Exam> list(Integer current, Integer size) {
        return service.page(new Page(current, size));
    }
}
